using UnityEngine;
using System.Collections;

public class Client : MonoBehaviour {
	public Transform player, pCam;
	public Server s;
	void Start () {
		DontDestroyOnLoad(transform.gameObject);
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	public void connectTo(string ip, int port){
		Network.Connect(ip,port);
	}
	void OnDisconnectedFromServer(NetworkDisconnection info){ 
		Application.LoadLevel(0);
	}
}
